package com.ruoyi.project.lely.bean.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

/**
 * 商品参数
 *
 * @author luoyong
 */
@Data
@ApiModel("商品参数 入参DTO")
public class LyGoodsAttributeDTO {

    @ApiModelProperty("ID")
    private Long id;

    @NotNull
    @ApiModelProperty("商品表的商品ID")
    private Integer goodsId;

    @Length(max = 255, message = "商品参数名称长度不能超过255位")
    @NotEmpty
    @ApiModelProperty("商品参数名称")
    private String attribute;

    @Length(max = 255, message = "商品参数值长度不能超过255位")
    @NotEmpty
    @ApiModelProperty("商品参数值")
    private String value;

}
